<template>
  <div class="coll-icon" @click="handColl">
    <img v-if="!id" src="@/assets/img/shoucang-0.png" alt />
    <img v-else src="@/assets/img/shoucang-1.png" alt />
  </div>
</template>

<script>
export default {
  components: {},
  name: 'CompanyDetail',
  props: {
    id: {
      type: [String, Number],
      default: '',
    },
  },
  data() {
    return {}
  },
  methods: {
    handColl() {
      this.$emit('handColl')
    },
  },
  mounted() {},
}
</script>

<style lang='scss'>
.coll-icon {
  position: fixed;
  right: 20px;
  bottom: 20px;
  img {
    width: 100px;
    height: 100px;
  }
}
</style>
